package com.nfIt.main;

import com.nfIt.dao.Impl.staffsDaoImpl;
import com.nfIt.dao.staffsDao;
import com.nfIt.pojo.staffs;

/**
 * ClossName:StaffsInsert
 * Pakage:com.nfIt.main
 * Description
 *
 * @Author L
 * @Create 2024/3/7 15:04
 * @Version 2023.1.3
 */
public class StaffsInsert {
    public static void main(String[] args) {
        //        添加
        staffsDao staffsDao = new staffsDaoImpl();
        staffs s = new staffs();
        s.setName("liao");
        s.setAge(18);
        s.setPhone("13481816558");
        s.setPos("xxxxxx");
        java.util.Date utilDate = new java.util.Date();
        java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
        s.setAdd_time(sqlDate);
        s.setUpdate_time(sqlDate);

        int rows =  staffsDao.insertStaffs(s);
        System.out.println(rows);
    }
}
